﻿using WYT.Pay.Application.Contracts.Services;

namespace WYT.Pay.WebApi
{
    public class HangfireJobService
    {
        private readonly IPaymentAppService _payAppService;
        public HangfireJobService(IPaymentAppService payAppService)
        {
            _payAppService = payAppService;
        }

        /// <summary>
        /// 支付单超期检查
        /// </summary>
        public void PaymentOrderTimeoutCheck()
        {
            Task.Run(() => _payAppService.PaymentOrderTimeoutCheck()).Wait();
        }
    }
}
